home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-06-06  |  5.5 KB  |  196 lines

  1. ###
  2. ### Makefile for GNU Interactive Tools
  3. ###
  4.  
  5. ###
  6. ### Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
  7. ###
  8. ### This program is  free software; you can  redistribute it and/or modify
  9. ### it under the terms  of the GNU General Public  License as published by
  10. ### the  Free Software Foundation; either version  2,  or (at your option)
  11. ### any later version.
  12. ### 
  13. ### This program is distributed  in the hope that  it will be  useful, but
  14. ### WITHOUT    ANY  WARRANTY;  without   even   the  implied  warranty  of
  15. ### MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR   PURPOSE.  See the GNU
  16. ### General Public License for more details.
  17. ### 
  18. ### You should  have received a  copy of  the GNU  General Public  License
  19. ### along with   this  program; if   not,  write  to   the Free   Software
  20. ### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. ###
  22.  
  23.  
  24. PRODUCT        = "@PRODUCT@"
  25. VERSION        = "@VERSION@"
  26.  
  27.  
  28. srcdir        = @srcdir@
  29. VPATH        = @srcdir@
  30.  
  31. prefix        = @prefix@
  32. bindir        = $(prefix)/bin
  33. libdir        = $(prefix)/lib/git
  34. termdir        = $(prefix)/lib/git/term
  35.  
  36. SHELL        = /bin/sh
  37. CFLAGS        = @CFLAGS@
  38. LDFLAGS        = @LDFLAGS@
  39. CPPFLAGS    = @CPPFLAGS@
  40. DEFS        = @DEFS@ -I.. -I$(srcdir)
  41. LIBS        = @LIBS@
  42. CC        = @CC@
  43. CPP        = @CPP@ $(CPPFLAGS) $(DEFS)
  44. INSTALL        = @INSTALL@
  45. INSTALL_PROGRAM    = @INSTALL_PROGRAM@
  46. INSTALL_DATA    = @INSTALL_DATA@
  47. HOST        = @HOST@
  48.  
  49.  
  50. GIT_OBJS    = @GIT_OBJS@ tty.o window.o inputline.o status.o panel.o git.o\
  51.           configure.o misc.o signals.o xmalloc.o xstring.o xio.o xid.o\
  52.           xstack.o system.o fsusage.o\
  53.           fnmatch.o
  54. GITCMP_OBJS    = gitcmp.o
  55. GITWIPE_OBJS    = gitwipe.o
  56. GITKEYS_OBJS    = gitkeys.o
  57. GITPS_OBJS    = @GITPS_OBJS@ tty.o window.o configure.o misc.o gitps.o\
  58.           xmalloc.o xstring.o xio.o
  59. GITVIEW_OBJS    = @GITVIEW_OBJS@ tty.o window.o configure.o misc.o gitview.o\
  60.           xmalloc.o xstring.o xio.o
  61. GIT_BINS    = git gitps gitview gitcmp gitkeys gitwipe
  62. GIT_SCRIPTS    = gitmount gitaction gitredir gitrgrep gitxgrep .gitaction
  63. GIT_RGREPS    = gitregrep gitrfgrep
  64.  
  65.  
  66. all:    $(GIT_BINS)
  67.  
  68. installdirs:
  69.     $(srcdir)/../mkinstalldirs $(bindir) $(libdir)
  70.  
  71. .c.o:
  72.     $(CC) -c $(CFLAGS) $(DEFS) $<
  73.  
  74. git:    $(GIT_OBJS)
  75.     $(CC) $(LDFLAGS) -o $@ $(GIT_OBJS) $(LIBS)
  76.  
  77. gitps:    $(GITPS_OBJS)
  78.     $(CC) $(LDFLAGS) -o $@ $(GITPS_OBJS) $(LIBS)
  79.  
  80. gitview: $(GITVIEW_OBJS)
  81.      $(CC) $(LDFLAGS) -o $@ $(GITVIEW_OBJS) $(LIBS)
  82.  
  83. gitcmp:    $(GITCMP_OBJS)
  84.     $(CC) $(LDFLAGS) -o $@ $(GITCMP_OBJS) $(LIBS)
  85.  
  86. gitkeys: $(GITKEYS_OBJS)
  87.      $(CC) $(LDFLAGS) -o $@ $(GITKEYS_OBJS) $(LIBS)
  88.  
  89. gitwipe: $(GITWIPE_OBJS)
  90.      $(CC) $(LDFLAGS) -o $@ $(GITWIPE_OBJS) $(LIBS)
  91.  
  92. install: all install-only
  93.  
  94. install-only:
  95.     for i in $(GIT_BINS);\
  96.     do\
  97.         rm -f $(bindir)/$$i;\
  98.         $(INSTALL_PROGRAM) $$i $(bindir)/$$i;\
  99.     done
  100.     for i in $(GIT_SCRIPTS);\
  101.     do\
  102.         rm -f $(bindir)/$$i;\
  103.         $(INSTALL_PROGRAM) $(srcdir)/$$i $(bindir)/$$i;\
  104.     done
  105.     for i in $(GIT_RGREPS);\
  106.     do\
  107.         rm -f $(bindir)/$$i;\
  108.         ln $(bindir)/gitrgrep $(bindir)/$$i;\
  109.     done
  110.  
  111. install-strip:
  112.     for i in $(GIT_BINS);\
  113.     do\
  114.         rm -f $(bindir)/$$i;\
  115.         $(INSTALL_PROGRAM) -s $$i $(bindir)/$$i;\
  116.     done
  117.     for i in $(GIT_SCRIPTS);\
  118.     do\
  119.         rm -f $(bindir)/$$i;\
  120.         $(INSTALL_PROGRAM) $(srcdir)/$$i $(bindir)/$$i;\
  121.     done
  122.     for i in $(GIT_RGREPS);\
  123.     do\
  124.         rm -f $(bindir)/$$i;\
  125.         ln $(bindir)/gitrgrep $(bindir)/$$i;\
  126.     done
  127.  
  128. dep:
  129.     sed '/\#\#\# Dependencies/q' < Makefile.in > tmp_make
  130.     (for i in *.c;\
  131.     do\
  132.         $(CPP) -MM $$i;\
  133.     done) >> tmp_make
  134.     mv tmp_make Makefile.in
  135.  
  136. uninstall:
  137.     -cd $(bindir) && rm -f $(GIT_BINS)
  138.     -cd $(bindir) && rm -f $(GIT_SCRIPTS)
  139.     -cd $(bindir) && rm -f $(GIT_RGREPS)
  140.  
  141. clean:
  142.     -rm -f *.o *~ core* tutu* gogu* $(GIT_BINS)
  143.  
  144. mostlyclean: clean
  145.  
  146. distclean: clean
  147.     -rm -f Makefile config.status config.log config.cache
  148.  
  149. realclean: distclean
  150.  
  151. tags:
  152.     etags *.c *.h *.l *.y
  153.  
  154. etags:
  155.     etags *.c *.h *.l *.y
  156.  
  157. ### Dependencies
  158. configure.o: configure.c file.h xstring.h stdc.h tty.h window.h \
  159.  configure.h misc.h xtime.h
  160. fnmatch.o: fnmatch.c fnmatch.h
  161. fsusage.o: fsusage.c xio.h stat.h stdc.h fsusage.h
  162. git.o: git.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h tty.h \
  163.  window.h inputline.h status.h panel.h xstack.h configure.h signals.h \
  164.  system.h history.h tilde.h misc.h xtime.h
  165. gitcmp.o: gitcmp.c file.h
  166. gitkeys.o: gitkeys.c stdc.h xio.h stat.h
  167. gitps.o: gitps.c file.h stdc.h xstring.h xmalloc.h tty.h window.h \
  168.  configure.h tilde.h misc.h xtime.h
  169. gitview.o: gitview.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h \
  170.  window.h configure.h tty.h misc.h xtime.h tilde.h
  171. gitwipe.o: gitwipe.c xtime.h file.h
  172. history.o: history.c file.h xio.h stat.h stdc.h xstring.h history.h \
  173.  xmalloc.h
  174. inputline.o: inputline.c xstring.h stdc.h xmalloc.h configure.h \
  175.  history.h tty.h window.h inputline.h tilde.h misc.h xtime.h
  176. misc.o: misc.c xstring.h stdc.h xmalloc.h configure.h file.h tty.h \
  177.  window.h misc.h xtime.h
  178. panel.o: panel.c file.h xtime.h stdc.h xstring.h xmalloc.h xio.h \
  179.  stat.h xid.h fsusage.h window.h status.h signals.h tty.h inputline.h \
  180.  panel.h xstack.h tilde.h fnmatch.h configure.h system.h misc.h
  181. signals.o: signals.c signals.h stdc.h inputline.h window.h tty.h \
  182.  misc.h xtime.h
  183. status.o: status.c xtime.h xstring.h stdc.h xmalloc.h window.h \
  184.  status.h configure.h tty.h misc.h
  185. system.o: system.c xmalloc.h stdc.h xio.h stat.h tty.h window.h \
  186.  signals.h inputline.h system.h misc.h xtime.h
  187. tilde.o: tilde.c xmalloc.h stdc.h xstring.h tilde.h
  188. tty.o: tty.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h tty.h \
  189.  window.h misc.h xtime.h
  190. window.o: window.c window.h stdc.h xmalloc.h tty.h
  191. xid.o: xid.c xstring.h stdc.h xmalloc.h xid.h
  192. xio.o: xio.c xmalloc.h stdc.h xstring.h xio.h stat.h
  193. xmalloc.o: xmalloc.c xmalloc.h stdc.h
  194. xstack.o: xstack.c xmalloc.h stdc.h xstring.h xstack.h
  195. xstring.o: xstring.c xmalloc.h stdc.h xstring.h
  196.